const express = require('express');

var router = express.Router();

const path = require('path');

const fs = require('fs')

router.get("/",(req,res,next)=>{


    console.log(req.path);

    let url = '.' + req.originalUrl;

    console.log(url)
    
   let data = fs.readFileSync(url);
    res.send(data);

})  

module.exports = router;